package com.bingwang.sourcelearn.transaction.tx01_jdbc.service.impl;

import com.bingwang.sourcelearn.transaction.tx01_jdbc.dao.UserRepository;
import com.bingwang.sourcelearn.transaction.tx01_jdbc.model.UserPO;
import com.bingwang.sourcelearn.transaction.tx01_jdbc.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author WangBing
 * @date 2023/12/17 16:57
 */
@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    UserRepository userRepository;

    @Override
    public UserPO findById(Long id) {
        return userRepository.findById(id);
    }
}
